package com.sc.nft.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class MallBannerAddDTO {
    @ApiModelProperty(value = "富文本数据:里面会放任何东西:包括图片:视频:文字:链接等")
    private String richText;

    @ApiModelProperty(value = "轮播图位置 1:首页 2:商城主页 3:ip商城热卖专区首页 4:品牌首页 5：广场首页")
    @NotNull(message = "轮播图位置不能为空")
    private Integer location;

    @ApiModelProperty(value = "名称")
    @NotNull(message = "名称不能为空")
    private String name;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "图片地址")
    @NotNull(message = "图片地址不能为空")
    private String imgUrl;

    @ApiModelProperty(value = "排序")
    @NotNull(message = "排序不能为空")
    private Integer sort;

    @ApiModelProperty(value = "跳转类型0:省缺值 1:APP 2:不转跳 3:H5 4:富文本")
    @NotNull(message = "跳转类型不能为空")
    private Integer skipType;

    @ApiModelProperty(value = "跳转页面, 0:默认 1:ip商城首页  2:任务中心 3:福利专区 4:品牌主页 5:合成列表 6:合成列表详情 7:品牌孵化藏品详情 8:自由市场藏品详情 9:DAO学堂课程详情")
    @NotNull(message = "跳转页面不能为空")
    private Integer skipPage;

    @ApiModelProperty(value = "0:下架 1:上架")
    @NotNull(message = "上下架状态不能为空")
    private Boolean status = Boolean.FALSE;

    @ApiModelProperty(value = "上架时间")
    @NotNull(message = "上架时间不能为空")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date shelfTime;

    @ApiModelProperty(value = "下架时间")
    @NotNull(message = "下架时间不能为空")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date takeOffTime;

}
